﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" AutoEventWireup="true" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="AjaxControlToolkit" %>

<asp:DropDownList ID="yearList" runat="server">
</asp:DropDownList>
<AjaxControlToolkit:CascadingDropDown ID="yearList_CascadingDropDown" 
    runat="server" Enabled="True" TargetControlID="yearList"
    ServiceMethod="getYear" ServicePath="~/asmx/SelectionBDay.asmx"
     Category="year" LoadingText="Loading" PromptText="请选择">
</AjaxControlToolkit:CascadingDropDown>
年

<asp:DropDownList ID="monthList" runat="server">
</asp:DropDownList>
<AjaxControlToolkit:CascadingDropDown ID="monthList_CascadingDropDown" 
    runat="server" Enabled="True" TargetControlID="monthList"
    ServiceMethod="getMonth" ServicePath="~/asmx/SelectionBDay.asmx"
    ParentControlID="yearList" 
    Category="month" LoadingText="Loading" PromptText="--">
</AjaxControlToolkit:CascadingDropDown>
月

<asp:DropDownList ID="dayList" runat="server">
</asp:DropDownList>
<AjaxControlToolkit:CascadingDropDown ID="dayList_CascadingDropDown" 
    runat="server" Enabled="True" TargetControlID="dayList"
    ServiceMethod="getDay" ServicePath="~/asmx/SelectionBDay.asmx"
    ParentControlID="monthList" 
    Category="day" LoadingText="Loading" PromptText="--">
</AjaxControlToolkit:CascadingDropDown>
日